<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<body>

    <!-- 标签，收藏，消息 -->
    <nav th:fragment="nav1" class="ui inverted segment" style="background-color: black;">
        <div class="ui container">
            <h2 class="teal ui header item">Blog,[[${session.username}]]的</h2>
            <a href="#" class="ui black icon button rt mobile-show"><i class="sidebar icon"></i></a>
            <div class="ui menu secondary inverted stackable">
                <a th:href="@{/user/index}" class="tog item mobile-hide"><i class="home icon"></i>首页</a>
                <a th:href="@{/user/favorites}" class="tog item mobile-hide"><i class="star icon"></i>收藏</a>
                <a th:href="@{/user/labels}" class="tog item mobile-hide"><i class="tags icon"></i>标签</a>
                <a th:href="@{/user/archives}" class="tog item mobile-hide"><i class="clone icon"></i>归档</a>
                <a th:href="@{/user/about}" class="tog item mobile-hide"><i class="info icon"></i>关于我</a>
                <div class="right item">
                    <div class="ui icon input">
                        <input type="text" name="" id="" placeholder="搜索...">
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <nav th:fragment="nav2" class="ui inverted segment" style="background-color: black;">
        <div class="ui container">
            <h2 class="ui teal header item">Blog</h2>
            <a href="#" class="ui black icon button rt mobile-show"><i class="sidebar icon"></i></a>
            <div class="ui menu secondary inverted stackable">
                <a th:href="@{/user/index}" class="tog item mobile-hide"><i class="home icon"></i>首页</a>
                <a th:href="@{/user/manage}" class="tog item mobile-hide"><i class="list icon"></i>管理</a>
                <a th:href="@{/user/publish}" class="tog item mobile-hide"><i class="paper plane icon"></i>发布</a>
                <div class="right menu">
                    <div class="ui dropdown item">
                        <div class="text">
                            <img class="ui avatar image" th:src="@{/res/image/{img}(img=${session.avatar})}">
                            [[${session.username}]]
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="/toLogin" class="item" style="display:block">
                                <i class="power off icon"></i>
                                退出登陆
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>



</body>

</html>